
//
//  CZStatusModel.swift
//  weibo24
//
//  Created by 李文峰 on 16/3/4.
//  Copyright © 2016年 fengten. All rights reserved.
//

import UIKit

class CZStatusModel: NSObject {

    //查看接口文档  查看所需属性
    
    ///  created_at	string	微博创建时间
    var created_at: String?
    /// text	string	微博信息内容
    var text: String?
    ///source	string	微博来源
    var source: String?
    
    ///用户类型
    var user: CZStatusUserModel?
    
    ///reposts_count	int	转发数
    var reposts_count: Int = 0
    ///comments_count	int	评论数
    var comments_count: Int = 0
    ///attitudes_count	int	表态数
    var attitudes_count: Int = 0
    
    init(dict: [String: NSObject]) {
        super.init()
        
        setValuesForKeysWithDictionary(dict)
        
        //获取用户属性
        if let Ouser = dict["user"] as? [String: NSObject]{
            
            user = CZStatusUserModel(dict: Ouser)
        }
        
    }
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) {
    }
    
}
